<template>
  <div>
    <el-row>
      <el-col :span="8">
        <el-card>
          <div slot="header" class="clearfix">
            <span>用户信息</span>
          </div>
          <div class="text item">
            工号: {{ user.workNo }}
          </div>
          <div class="text item">
            姓名: {{ user.realName }}
          </div>
          <div class="text item">
            邮箱: {{ user.email }}
          </div>
          <div class="text item">
            手机: {{ user.phone }}
          </div>
        </el-card>
      </el-col>
    </el-row>

  </div>
</template>

<script>
export default {
  name: "Index",
  computed: {
    user() {
      return this.$store.state.userInfo
    }
  },
  methods: {}
}
</script>

<style scoped>
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}
</style>
